package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Advert;

import java.util.List;
import java.util.Set;

public interface AdvertService {

    Result<List<Advert>> list(Integer type);

    Result<IPage<Advert>> listPage(Integer type, Integer status, Integer pageNo, Integer pageSize);

    Result<Advert> getById(Integer id);

    Result add(Advert advert);

    Result updateById(Advert advert);

    Result deleteByIds(Set<Integer> ids);

}
